package com.wanwen.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName(value="role_users")
public class RoleUsers {
	@TableId(type=IdType.AUTO)
	private Integer id;//编号
	@TableField("role_id")
	private Integer roleId;//角色id
	@TableField("users_id")
	private Integer usersId;//用户id
	public RoleUsers(Integer id, Integer roleId, Integer usersId) {
		super();
		this.id = id;
		this.roleId = roleId;
		this.usersId = usersId;
	}
	public RoleUsers() {
		super();
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getRoleId() {
		return roleId;
	}
	public void setRoleId(Integer roleId) {
		this.roleId = roleId;
	}
	public Integer getUsersId() {
		return usersId;
	}
	public void setUsersId(Integer usersId) {
		this.usersId = usersId;
	}
	@Override
	public String toString() {
		return "RoleUsers [id=" + id + ", roleId=" + roleId + ", usersId=" + usersId + "]";
	}
	
}
